import { defineUserConfig } from "vuepress";
import recoTheme from "vuepress-theme-reco";
import { viteBundler } from '@vuepress/bundler-vite'
import { webpackBundler } from '@vuepress/bundler-webpack'

export default defineUserConfig({
  title: "今夜写代码 Code Tonight",
  description: "今夜写代码 Just For Fun",
  bundler: viteBundler(),
  // bundler: webpackBundler(),
  theme: recoTheme({
    style: "@vuepress-reco/style-default",
    logo: "/logo.png",
    author: "今夜写代码",
    authorAvatar: "/person.png",
    docsRepo: "https://github.com/vuepress-reco/vuepress-theme-reco-next",
    docsBranch: "main",
    docsDir: "example",
    lastUpdatedText: "",
    // series 为原 sidebar
    series: {
      "/docs/theme-reco/": [
        {
          text: "module one",
          children: ["home", "theme"],
        },
        {
          text: "module two",
          children: ["api", "plugin"],
        },
      ],
    },
    navbar: [
      { text: "Home", link: "/" },
      { text: "Kafka学习", link: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzkwNzcxOTczMw==&action=getalbum&album_id=3559253097630990340#wechat_redirect" },
      { text: "SpringBoot 学习", link: "https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzkwNzcxOTczMw==&action=getalbum&album_id=3568533260529106944#wechat_redirect" },
 
    ],
    bulletin: {
      body: [
        {
          type: "text",
          content: `这个我个人的学习博客，感兴趣的加微信公众号一起成长，由于水平有限，如文章中存在错误或者您有什么建议，都可以和我留言，我会在第一时间响应。`,
          style: "font-size: 12px;",
        },
        {
          type: "hr",
        },
        {
          type: "title",
          content: "公众号",
        },
        {
          type: "text",
          content: `
          <ul>
            <li>今夜写代码</li>
          </ul>`,
          style: "font-size: 12px;",
        },
        {
          type: "hr",
        },
        {
          type: "title",
          content: "GitHub",
        },
        {
          type: "hr",
        }
  
      ],
    },
    // commentConfig: {
    //   type: 'valine',
    //   // options 与 1.x 的 valineConfig 配置一致
    //   options: {
    //     // appId: 'xxx',
    //     // appKey: 'xxx',
    //     // placeholder: '填写邮箱可以收到回复提醒哦！',
    //     // verify: true, // 验证码服务
    //     // notify: true,
    //     // recordIP: true,
    //     // hideComments: true // 隐藏评论
    //   },
    // },
  }),
  // debug: true,
});
